package com.github.m6d21.loading.common;

import com.github.m6d21.loading.conflict.Cipher;
import com.github.m6d21.loading.conflict.car.BMWCar;

/**
 *<p>
 *
 *</p>
 *
 * @author liuyang
 * @date 2018/12/17 Mon 14:43:00
 * @since 1.0.0
 */
public class CustomEncryptUtil {

    public static String encrypt(String message) {
        Cipher cipher = Cipher.getInstance("aes");
        return cipher.encrypt(message);
    }

    public static String decrypt(String message) {
        Cipher cipher = Cipher.getInstance("aes");
        return cipher.decrypt(message);
    }

    public static String getCar(){
        return new BMWCar().showTime();
    }
}
